<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试输出流</title>
    <script src="js/common.js"></script>
</head>
<body>
<h1  id="title">我是老大</h1>
<p id="p1">Hello World</p>
<p id="p2">Hello World</p>
<script>
    $("title").onclick=function (){
        this.innerText="变成小弟";
    }
    document.getElementById("p2").style.color = "blue";
    // function change(obj){
    //     obj.innerText = "变成小弟";
    // }
</script>
</body>
</html>